package com.ruoyi.safety.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.safety.mapper.PointStatusDictMapper;
import com.ruoyi.safety.domain.PointStatusDict;
import com.ruoyi.safety.service.IPointStatusDictService;

/**
 * 测点状态字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
@Service
public class PointStatusDictServiceImpl extends ServiceImpl<PointStatusDictMapper, PointStatusDict> implements IPointStatusDictService //修改
{
    @Autowired
    private PointStatusDictMapper pointStatusDictMapper;

    /**
     * 查询测点状态字典
     * 
     * @param pointId 测点状态字典主键
     * @return 测点状态字典
     */
    @Override
    public PointStatusDict selectPointStatusDictByPointId(String pointId)
    {
        return pointStatusDictMapper.selectPointStatusDictByPointId(pointId);
    }

    /**
     * 查询测点状态字典列表
     * 
     * @param pointStatusDict 测点状态字典
     * @return 测点状态字典
     */
    @Override
    public List<PointStatusDict> selectPointStatusDictList(PointStatusDict pointStatusDict)
    {
        return pointStatusDictMapper.selectPointStatusDictList(pointStatusDict);
    }

    /**
     * 新增测点状态字典
     * 
     * @param pointStatusDict 测点状态字典
     * @return 结果
     */
    @Override
    public int insertPointStatusDict(PointStatusDict pointStatusDict)
    {
        return pointStatusDictMapper.insertPointStatusDict(pointStatusDict);
    }

    /**
     * 修改测点状态字典
     * 
     * @param pointStatusDict 测点状态字典
     * @return 结果
     */
    @Override
    public int updatePointStatusDict(PointStatusDict pointStatusDict)
    {
        return pointStatusDictMapper.updatePointStatusDict(pointStatusDict);
    }

    /**
     * 批量删除测点状态字典
     * 
     * @param pointIds 需要删除的测点状态字典主键
     * @return 结果
     */
    @Override
    public int deletePointStatusDictByPointIds(String[] pointIds)
    {
        return pointStatusDictMapper.deletePointStatusDictByPointIds(pointIds);
    }

    /**
     * 删除测点状态字典信息
     * 
     * @param pointId 测点状态字典主键
     * @return 结果
     */
    @Override
    public int deletePointStatusDictByPointId(String pointId)
    {
        return pointStatusDictMapper.deletePointStatusDictByPointId(pointId);
    }

    @Override
    public PointStatusDict selectPointStatusDictByNum(String binaryString) {
        return pointStatusDictMapper.selectPointStatusDictByNum(binaryString);
    }
}
